package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MeowSalesOrdersMapper;
import com.ruoyi.system.domain.MeowSalesOrders;
import com.ruoyi.system.service.IMeowSalesOrdersService;
import com.ruoyi.common.core.text.Convert;

/**
 * 销售订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class MeowSalesOrdersServiceImpl implements IMeowSalesOrdersService 
{
    @Autowired
    private MeowSalesOrdersMapper meowSalesOrdersMapper;

    /**
     * 查询销售订单
     * 
     * @param orderId 销售订单主键
     * @return 销售订单
     */
    @Override
    public MeowSalesOrders selectMeowSalesOrdersByOrderId(String orderId)
    {
        return meowSalesOrdersMapper.selectMeowSalesOrdersByOrderId(orderId);
    }

    /**
     * 查询销售订单列表
     * 
     * @param meowSalesOrders 销售订单
     * @return 销售订单
     */
    @Override
    public List<MeowSalesOrders> selectMeowSalesOrdersList(MeowSalesOrders meowSalesOrders)
    {
        return meowSalesOrdersMapper.selectMeowSalesOrdersList(meowSalesOrders);
    }

    /**
     * 新增销售订单
     * 
     * @param meowSalesOrders 销售订单
     * @return 结果
     */
    @Override
    public int insertMeowSalesOrders(MeowSalesOrders meowSalesOrders)
    {
        return meowSalesOrdersMapper.insertMeowSalesOrders(meowSalesOrders);
    }

    /**
     * 修改销售订单
     * 
     * @param meowSalesOrders 销售订单
     * @return 结果
     */
    @Override
    public int updateMeowSalesOrders(MeowSalesOrders meowSalesOrders)
    {
        return meowSalesOrdersMapper.updateMeowSalesOrders(meowSalesOrders);
    }

    /**
     * 批量删除销售订单
     * 
     * @param orderIds 需要删除的销售订单主键
     * @return 结果
     */
    @Override
    public int deleteMeowSalesOrdersByOrderIds(String orderIds)
    {
        return meowSalesOrdersMapper.deleteMeowSalesOrdersByOrderIds(Convert.toStrArray(orderIds));
    }

    /**
     * 删除销售订单信息
     * 
     * @param orderId 销售订单主键
     * @return 结果
     */
    @Override
    public int deleteMeowSalesOrdersByOrderId(String orderId)
    {
        return meowSalesOrdersMapper.deleteMeowSalesOrdersByOrderId(orderId);
    }
}
